package v3.common.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus
public class BadRequestException extends RuntimeException{
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    private Integer code= -1;
    public BadRequestException(String message){
        super(message);
    }
    public BadRequestException(String message,Integer code){
        super(message);
        this.code =code;
    }
}
